import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from "./src/components/HomeScreen";
import SecondScreen from "./src/components/chart/SecondScreen";
import LoginScreen from "./src/components/Login";
import HealthSummary from "./src/components/HealthSummary";
import SettingsScreen from "./src/components/SettingScreen";
import CameraComponent from "./src/components/Camera";
import SoundComponent from "./src/components/Sound";

const Stack = createStackNavigator();

const App = () => {
    return (
        <NavigationContainer>
            <Stack.Navigator initialRouteName="SoundComponent">
                <Stack.Screen name="LoginScreen" component={LoginScreen} />
                <Stack.Screen name="HealthSummary" component={HealthSummary} />
                <Stack.Screen name="SettingScreen" component={SettingsScreen} />
                <Stack.Screen name="Home" component={HomeScreen} />
                <Stack.Screen name="CameraComponent" component={CameraComponent} />
                <Stack.Screen name="SoundComponent" component={SoundComponent} />
                <Stack.Screen name="Second" component={SecondScreen} />
            </Stack.Navigator>
        </NavigationContainer>
    );
};

export default App;
